package com.example.daytest.twothreesheji.Singleton;

/**
 * @author heyu
 * @title: ThreadTest
 * @description:多线程下调用单例模式
 * @date 2022/3/9下午2:33
 */
public class ThreadTest {
    public static void main(String[] args) {
        for(int i=0;i<=10;i++){
            new Thread(new Runnable() {
                @Override
                public void run() {
                    Singleton.getInstance();
                }
            }).start();;
        }


    }
}

